/**
 *
 *
 * 淘汰支付文件
 * @type {{ShopDeviceId: {shopId: null, deviceId: null}}}
 */

const state = {
  ShopDeviceId: {
    shopId: null,
    deviceId: null
  }
}

const mutations = {
  setShopDeviceId(state, ids) {
    if (ids.shopId != null && ids.shopId !== '') {
      state.ShopDeviceId.shopId = ids.shopId
    } else {
      state.ShopDeviceId.shopId = null
    }
    if (ids.deviceId != null && ids.deviceId !== '') {
      state.ShopDeviceId.deviceId = ids.deviceId
    } else {
      state.ShopDeviceId.deviceId = null
    }

    // console.log('state.ShopDeviceId.deviceId', state.ShopDeviceId.deviceId)
  }
}

const actions = {

}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
